<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>run_after_all (Spec::DSL::Behaviour)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File vendor\plugins\rspec/lib/spec/dsl/behaviour.rb, line 188</span>
      <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run_after_all</span>(<span class="ruby-identifier">reporter</span>, <span class="ruby-identifier">dry_run</span>)
        <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">dry_run</span>
          <span class="ruby-keyword kw">begin</span> 
            <span class="ruby-ivar">@before_and_after_all_context_instance</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">execution_context</span>(<span class="ruby-keyword kw">nil</span>) 
            <span class="ruby-ivar">@before_and_after_all_context_instance</span>.<span class="ruby-identifier">instance_eval</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">after_all_proc</span>(<span class="ruby-identifier">behaviour_type</span>)) 
          <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Exception</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">e</span>
            <span class="ruby-identifier">location</span> = <span class="ruby-value str">&quot;after(:all)&quot;</span>
            <span class="ruby-identifier">reporter</span>.<span class="ruby-identifier">example_finished</span>(<span class="ruby-constant">Example</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">location</span>), <span class="ruby-identifier">e</span>, <span class="ruby-identifier">location</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">reporter</span>
          <span class="ruby-keyword kw">end</span>
        <span class="ruby-keyword kw">end</span>
      <span class="ruby-keyword kw">end</span></pre>
</body>
</html>